#include <sourcemod>
#include <sdktools>

public Plugin myinfo = 
{
	name = "BS ZS",
	author = "那一世的悲伤",
	description = "幸存者自杀指令",
	version = SOURCEMOD_VERSION,
	url = "http://www.sourcemod.net/"
};

public void OnPluginStart()
{
    RegConsoleCmd("sm_zs",OnZS,"幸存者自杀指令");
}

public Action OnZS(int client, int args)
{
  	if (IsPlayerAlive(client) && GetClientTeam(client) == 2)
	{
		ForcePlayerSuicide(client);
		PrintToChatAll("\x04[提示]\x03%N\x05突然失去了梦想,自杀身亡.", client);
	}
}